Basics init.py and your first Flask App! Cant get it to work Im getting an Index of/

by: dbcooper, 7 years ago

Last edited: 7 years ago

I followed every step but I couldn't make the website load... I got the Apache2 Default Page. So I changed the default directory of apache from /var/www/html to /var/www/FlaskApp and now when I try to enter the servers IP I get a list of my files:

Index of /

[ICO] Name Last modified Size Description
[TXT] __init__.py 2017-10-28 12:19 159
[DIR] static/ 2017-10-28 11:48 -
[DIR] templates/ 2017-10-28 11:48 -
Apache/2.4.25 (Raspbian) Server at 172.16.0.6 Port 80

How can I make this work?
Thanks!



You must be logged in to post. Please login or register an account.



Typically, when getting the apache2 default page, it's an issue with the flaskapp.conf file. You shouldn't be changing the directories around at all from the tutorial

-Harrison 7 years ago

You must be logged in to post. Please login or register an account.